package model;

/**
 * Created by PanD
 */

public class HitResult {
    //内存帧容量
    private Integer pageSize;
    //FIFO的命中率
    private Double hitOfFIFO;
    //LRU的命中概率
    private Double hitOfLRU;
    //OPT的命中率
    private Double hitOfOPT;

//constructor ------------------------------------------------------------------

    public HitResult(Integer pageSize, Double hitOfFIFO, Double hitOfLRU, Double hitOfOPT) {
        this.pageSize = pageSize;
        this.hitOfFIFO = hitOfFIFO;
        this.hitOfLRU = hitOfLRU;
        this.hitOfOPT = hitOfOPT;
    }


//getter&setter ----------------------------------------------------------------


    public Integer getPageSize() {
        return pageSize;
    }

    public Double getHitOfFIFO() {
        return hitOfFIFO;
    }

    public Double getHitOfLRU() {
        return hitOfLRU;
    }

    public Double getHitOfOPT() {
        return hitOfOPT;
    }
}
